#-*-encoding=utf-8-*-
steps = [
    FlowStep(
        name=u'init',
        title=u'申请',
        fields=[u'name', u'applicationDate', u'items'],
        responsibles=u'sheet is None and [request.principal.id] or sheet["creators"]',
    actions=[
        FlowStepAction(
            name=u'submit',
            title=u'提交',
            nextsteps=[u'review'],
            finish_condition=u''
)
])
,

    FlowStep(
        name=u'review',
        title=u'审核',
        fields=[u'name', u'applicationDate', u'items'],
        responsibles=u'flowsettings["reviewer"]',
    actions=[
        FlowStepAction(
            name=u'accept',
            title=u'通过',
            nextsteps=[],
            finish_condition=u''
),

        FlowStepAction(
            name=u'reject',
            title=u'打回',
            nextsteps=[u'init'],
            finish_condition=u''
)
])
]